<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'app',  
  provide () {
    return {
      isSuperAdmin: () => this.isSuperAdmin,
    }
  },  
  computed: {
    isSuperAdmin () {
      return (
        process.env.NODE_ENV === 'development' &&
        (this.user?.roleIdList || []).includes('1')
      )
    },
  }
}
</script>

<style lang="scss">
html {
  overflow-x: hidden;
  font-family: DIN Alternate Bold, 思源黑体 CN Normal, 'Microsoft YaHei',
    微软雅黑, 'Microsoft JhengHei', 华文细黑, STHeiti, MingLiu!important;
}
#app.isWebView {
  .layout-content-wrapp {
    display: block;
    width: 100%;
    margin-left: 0;
  }
  .layout-wrapper .router-view {
    height: calc(100vh - 80px);
  }
}
</style>
